
class TypeDomain:
    def __init__(self, **kwargs):
        self.typeId = kwargs.get('typeId')
        self.typeName = kwargs.get('typeName')
        self.parentId = kwargs.get('parentId')
        self.createTime = kwargs.get('createTime')

    def __str__(self):
        return str(self.__dict__)

    def get(self, key: str):
        try:
            return getattr(self, key)
        except AttributeError:
            return None
